package com.sc.nft.dto;

import com.sc.nft.enums.task.TaskPrizeTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 任务奖励DTO
 */
@Data
public class ActivityTaskPrizeDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(name = "类型")
    @NotNull(message = "类型不能为空")
    private TaskPrizeTypeEnum type;

    @ApiModelProperty(name = "虚拟道具Id")
    private Long propsId;
    @ApiModelProperty(name = "虚拟道具名称")
    private String propsName;
    @ApiModelProperty(name = "奖励")
    @NotNull(message = "奖励不能为空")
    @Range(min = 1, max = 999, message = "奖励只能为1-999")
    private Integer prize;





}